package com.shitou.shitoumember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shitou.shitoucommons.utils.PageUtils;
import com.shitou.shitoucommons.utils.RespBean;
import com.shitou.shitoumember.entity.MemberInterestEntity;

import java.util.Map;

/**
 * 关注表
 *
 * @author shitouren
 * @email 3076767823@qq.com
 * @date 2023-04-04 16:23:15
 */
public interface MemberInterestService extends IService<MemberInterestEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 创建关注信息
     * @param memberId
     * @param beingMemberId
     * @return
     */
    RespBean createInterest(Long memberId, Long beingMemberId);


    /**
     * 删除关注信息
     * @param memberId
     * @param beingMemberId
     * @return
     */
    RespBean deleteInterest(Long memberId, Long beingMemberId);


    /**
     * 获取用户关注的所有用户
     * @param memberId
     * @return
     */
    RespBean getInterest(Long memberId);
}

